/*
 * Utils.java
 *
 * Created on November 20, 2007, 2:21 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.vce.web.util;
import org.apache.commons.lang.StringUtils;
/**
 *
 * @author Smahmud
 */
public class Utils {
    
    /** Creates a new instance of Utils */
    public Utils() {
    }
    
    public static String getClassName(Class clazz){
        String name = "";
        if (clazz != null) {
            name = clazz.getName();
            if(name.contains("$$")){
                return name.substring(0, name.indexOf("$"));
            }
        }
        return name;
    }
    
    public static String leftPad(Long reference) {
        return reference != null ? StringUtils.leftPad(reference.toString(), 7, "0") :  "";
    }
}
